package com.gui.helper;

import com.inventory.entities.Route;
import java.math.BigDecimal;

/**
 * CustomerModel represents a single record of a particular customer.
 * @author sithum
 */
public class CustomerModel {

    private String name;
    private String shop;
    private String telephone;
    private String mobile;
    private String address;
    private Route route;
    private String discountAmount;
    private String discountPercentage;

    public CustomerModel(String name, String shop, String telephone, String mobile, String address, Route route) {
        this.name = name;
        this.shop = shop;
        this.telephone = telephone;
        this.mobile = mobile;
        this.address = address;
        this.route = route;
    }

    public CustomerModel() {
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the shop
     */
    public String getShop() {
        return shop;
    }

    /**
     * @param shop the shop to set
     */
    public void setShop(String shop) {
        this.shop = shop;
    }

    /**
     * @return the telephone
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * @param telephone the telephone to set
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /**
     * @return the mobile
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * @param mobile the mobile to set
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the route
     */
    public Route getRoute() {
        return route;
    }

    /**
     * @param route the route to set
     */
    public void setRoute(Route route) {
        this.route = route;
    }

    /**
     * @return the discountAmount
     */
    public String getDiscountAmount() {
        return discountAmount;
    }

    /**
     * @param discountAmount the discountAmount to set
     */
    public void setDiscountAmount(String discountAmount) {
        this.discountAmount = discountAmount;
    }

    /**
     * @return the discountPercentage
     */
    public String getDiscountPercentage() {
        return discountPercentage;
    }

    /**
     * @param discountPercentage the discountPercentage to set
     */
    public void setDiscountPercentage(String discountPercentage) {
        this.discountPercentage = discountPercentage;
    }

    /**
     * @return the discount
     */
    public BigDecimal getDiscount(String discount) {
        return new BigDecimal(discount);
    }
}
